package cn.yeamin.spring.boot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @classDesc: 功能描述:(数据源1配置属性类)
 * @author: 李彤
 * @createTime: 2017年6月29日 上午10:51:29
 * @version: v1.0
 * @copyright:奕明(上海)影视传媒有限公司
 */
@ConfigurationProperties(prefix = "spring.datasource.one")
public class OneDruidProperties {
	private String url;
	private String username;
	private String password;
	private String driverClass;

	private int maxActive;
	private int minIdle;
	private int initialSize;
	private boolean testOnBorrow;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getDriverClass() {
		return driverClass;
	}

	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}

	public int getMaxActive() {
		return maxActive;
	}

	public void setMaxActive(int maxActive) {
		this.maxActive = maxActive;
	}

	public int getMinIdle() {
		return minIdle;
	}

	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}

	public int getInitialSize() {
		return initialSize;
	}

	public void setInitialSize(int initialSize) {
		this.initialSize = initialSize;
	}

	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}

	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}
}
